import request from '@/sheep/request';

export default {
  /**
   * 活动详情
   *
   * @param id
   * @returns {Promise<HttpResponse<any>>}
   */
  getMemberLuckyConfig(id) {
    return request({
      url: '/no-auth/ums/lucky/luckyConfigInfo/' + id,
      method: 'get'
    })
  },
  /**
   * 中奖信息
   *
   * @param id
   * @returns {Promise<HttpResponse<any>>}
   */
  getMemberLuckyConfigLog(params) {
    return request({
      url: '/no-auth/ums/lucky/luckyLog',
      method: 'get',
      params: params
    })
  },
  /**
   * 随机抽奖
   *
   * @param data
   * @returns {Promise<HttpResponse<any>>}
   */
  randomLucky(data) {
    return request({
      url: '/h5/ums/lucky/randomLucky',
      method: 'post',
      data: data
    })
  }
};
